package bki.kiducate;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Thread thread_splash = new Thread(){
			@Override
			public void run() {
				try {
					int v_count = 0;
					while (v_count<1000)
					{
						v_count+=100;
						sleep(100);
					}
				} catch (InterruptedException e) {
					// TODO: handle exception					
				} finally{
					Intent v_it = new Intent(MainActivity.this, HomeActivity.class);
					startActivity(v_it);
					finish();
				}
			};
		};
		thread_splash.start();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
